import { RouteConfig } from "vue-router";
import TheLogin from "@/views/login/TheLogin.vue";
import TheMain from "@/views/main/TheMain.vue";
import LiuDao from '@/views/liudao/Liudao.vue'
import TheNotePlaza from '@/views/notePlaza/NotePlaza.vue'
// import UpdatedBaseInfo from '@/views/head/persCenter/UpdatedBaseInfoModal.vue';
// import UpdatePwd from '@/views/head/persCenter/UpdatePwdModal.vue';
import ThinkDeed from '@/views/liudao/thinkDeed/ThinkDeed.vue'

const routes: Array<RouteConfig> = [
    {
      path: "/login",
      name: "login",
      meta: {
        code: 'login',
        title: '登录',
      },
      component: TheLogin,
    },
    {
      path: "/",
      name: "main",
      meta: {
        code: 'main',
        title: '主页'
      },
      component: TheMain,
      children: [
        {
          path: '/liudao',
          name: 'liudao',
          meta: {
            code: 'liudao',
            title: '六道之众'
          },
          component: LiuDao,
        }, {
          path: '/thinkDeed',
          name: 'thinkDeed',
          meta: {
            code: 'thinkDeed',
            title: '行念明细'
          },
          component: ThinkDeed
        },
        {
          path: '/notePlaza',
          name: 'notePlaza',
          meta: {
            code: 'notePlaza',
            title: '笔记广场'
          },
          component: TheNotePlaza,
        },
      ]
    }
  ];

export default routes;